
var routes = [
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/Index.vue'),
      children:[
        {
          path: '/home',
          name: 'home',
          // meta: { title: '首页' },  //路由元信息========
          component: () => import('../views/SHome.vue'),
        },
        {
          path: '/bao',
          name: 'bao',
          // meta: { title: '爆爆团' },
          component: () => import('../views/Bao.vue'),
        },
      ]
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      // 路由重定向
      path: '/',
      redirect: '/home',
    },
    {
      // 404路由找不到指向
      path: '',
      component: () => import('../views/NotFound.vue'),
  
    },
  ] 
  export default routes